package com.xzzz.irda.registry.discovery.reactive;

import com.xzzz.irda.registry.discovery.RedisDiscoveryClient;
import org.springframework.cloud.client.ConditionalOnDiscoveryEnabled;
import org.springframework.cloud.client.ConditionalOnReactiveDiscoveryEnabled;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration(proxyBeanMethods = false)
@ConditionalOnDiscoveryEnabled
@ConditionalOnReactiveDiscoveryEnabled
public class RedisReactiveDiscoveryClientConfiguration {

    @Bean
    public RedisReactiveDiscoveryClient redisReactiveDiscoveryClient(RedisDiscoveryClient redisDiscoveryClient) {
        return new RedisReactiveDiscoveryClient(redisDiscoveryClient);
    }
}
